package com.ph.irp.base.salespricepolicy.dao;

import java.util.List;

import com.ph.irp.model.PBaseSalespricepolicy;

public interface PBaseSalesPricePolicyDAO {
	
	/*
	 * 查询销售价格政策记录
	 */
	public List<PBaseSalespricepolicy> getAllSalesPricePolicyList() throws Throwable;
	
	/*
	 * 按照销售价格政策ID查询
	 */
	public PBaseSalespricepolicy getSalespricepolicyById(Integer salesPricePolicyId) throws Throwable;
	
	/*
	 * 按照销售价格政策代码查询
	 */
	public List<PBaseSalespricepolicy> getSalespricePolicyByCode(String salesPricePolicyCode) throws Throwable;
	
	/*
	 * 按照销售价格政策名称查询
	 */
	public List<PBaseSalespricepolicy> getSalespricePolicyByName(String salesPricePolicyName) throws Throwable;
	
	/*
	 * 按照销售价格政策名称和代码一起查询
	 */
	public List<PBaseSalespricepolicy> getSalespricePolicyByCodeAndName(String salesPricePolicyCode,String salesPricePolicyName) throws Throwable;
	
	/*
	 * 添加销售价格政策记录
	 */
	public void addSalespricePolicy(PBaseSalespricepolicy salespricepolicyModel) throws Throwable;
	
	/*
	 * 修改选中记录
	 */
	public void updateSalespricePolicy(PBaseSalespricepolicy salespricepolicyModel) throws Throwable;
	
	/*
	 * 删除选中记录
	 */
	public void deleteSalespricePolicy(Integer salesPricePolicyId) throws Throwable;
	

}
